  export const setUser = (userInfo: any): void => {

  }

  export const getUser = (): any => {
    const userInfo = uni.getStorageSync('userInfo')
    if (userInfo == undefined) {
      return {}
    }
    return userInfo
  }

  export const setToken = (token: string): void => {
    uni.setStorageSync('qps.access-token', token)
  }

  export const getToken = (): string => {
    const token = uni.getStorageSync('qps.access-token')
    if (token == undefined) {
      return ''
    }
    return token
  }
